get_ipython().getoutput("pip install pydantic")


from pydantic import BaseModel

from typing import Optional

class Uber(BaseModel):
    driver: Optional[str] = None
    car: Optional[str] = None


uber1 = Uber(driver=2)
uber2 = Uber(car='Ford')
duber = dict(uber1)
duber


uber1['driver']



[x for x in uber1.__iter__()]



duber.update(uber2)


duber


get_ipython().run_line_magic('pinfo2',  'dicc.update')



